package com.menggudf.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="dictionarytype")
public class DictionaryType
  implements Serializable
{
  private static final long serialVersionUID = 246063680277139624L;
  private int id;
  private String dname;
  
  @Id
  @Column(name="id", unique=true, nullable=false)
  @GeneratedValue(strategy=GenerationType.IDENTITY)
  public int getId()
  {
    return this.id;
  }
  
  public void setId(int id)
  {
    this.id = id;
  }
  
  @Column(name="dname")
  public String getDname()
  {
    return this.dname;
  }
  
  public void setDname(String dname)
  {
    this.dname = dname;
  }
}
